function headLoadFile(pageTitleName){
    //加载html插件的文件
    //pageTitleName:网页的名称
    //创建者：付颖斌；创建时间：2021.8.5;修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：headLoadFile('新一代工业软件应用商店');
    document.writeln('<meta charset="UTF-8">');
    document.writeln('<title>'+ pageTitleName +'</title>');
    document.writeln('<link rel="shortcut icon" href="static/image/MESPlat.png" type="image/x-icon">');
    document.writeln('<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />');
    document.writeln('<meta name="description" content="overview &amp; stats"/>');
    document.writeln('<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>');
    document.writeln('<meta name="viewport" content="width=device-width, initial-scale=1.0"/>');
    //前台css和js
    document.writeln('<link rel="stylesheet" href="static/ace/assets/css/bootstrap.min.css"/>');
    document.writeln('<link rel="stylesheet" href="static/ace/assets/css/ace.min.css"/>');
    document.writeln('<link rel="stylesheet" href="static/ace/assets/font-awesome/4.5.0/css/font-awesome.min.css"/>');
    document.writeln('<link rel="stylesheet" href="static/ace/assets/css/ace-rtl.min.css"/>');
    document.writeln('<link rel="stylesheet" href="static/ace/assets/css/ace-skins.min.css"/>');
    document.writeln('<link rel="stylesheet" href="static/ace/assets/css/fonts.googleapis.com.css"/>');
    document.writeln('<link rel="stylesheet" href="static/css/Extra.css"/>');
    document.writeln('<link rel="stylesheet" href="static/css/searchStyle.css"/>');
    document.writeln('<link rel="stylesheet" href="static/css/gallery-style.css"/>');
    document.writeln('<link rel="stylesheet" href="static/bootstrap/bootstrap-table/bootstrap-table.css">');
    //应用中的前台JS文件
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery-3.6.0.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery-3.6.0.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery-2.1.4.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/ace-extra.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/ace.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/bootstrap.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.dataTables.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.dataTables.bootstrap.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery-ui.custom.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.ui.touch-punch.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/ace-elements.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.mobile.custom.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.bootstrap-duallistbox.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/bootstrap-multiselect.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery-ui.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/js/jquery.nestable.min.js"></script>');
    //支持bootstrap-table的js、css
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.dataTables.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/bootstrap/bootstrap-table/bootstrap-table.js"></script>');
    document.writeln('<script type="text/javascript" src="static/bootstrap/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.dataTables.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/jquery.dataTables.bootstrap.min.js"></script>');
    document.writeln('<script type="text/javascript"  src="static/ace/assets/js/ace-elements.min.js"></script>');
    document.writeln('<script type="text/javascript"  src="static/ace/assets/js/bootstrap-editable.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/ace/assets/js/bootstrap-tag.min.js"></script>');
    document.writeln('<script src="static/ace/assets/js/tree.min.js"></script>');
    document.writeln('<script src="static/ace/assets/js/ace-extra.min.js"></script>');
    document.writeln('<script type="text/javascript" src="static/js/dataTables.js"></script>');
    //document.writeln('<script type="text/javascript" src="static/js/userLogin.js"></script>');
    document.writeln('<script type="text/javascript" src="static/fybjs/userLoginFYB.js"></script>');
    document.writeln('<script type="text/javascript" src="static/js/fuzzySearch.js"></script>');
    document.writeln('<script type="text/javascript" src="static/js/adminAction.js"></script>');
    document.writeln('');
    document.writeln('');
}

function navBarShowAceFyb() {
    var staticDir='/chdwlgcsys/static/';
    document.writeln('<div class="navbar navbar-default" id="navbar">');
    document.writeln('<div class="navbar navbar-default" id="navbarHtml">');
    document.writeln('<div class="navbar-container" id="navbar-container">');
    //button按钮 开始
    document.writeln('<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebarDiv">');
    document.writeln('<span class="sr-only">Toggle sidebar</span>');
    document.writeln('<span class="icon-bar"></span>');
    document.writeln('<span class="icon-bar"></span>');
    document.writeln('</button>');
    //button按钮结束

    //最左侧的文字和按钮-开始
    document.writeln('<div class="navbar-header pull-left">');
    document.writeln('<a id="href0" href="#/" class="navbar-brand">');
    document.writeln('<small><i class="fa fa-leaf"></i>新一代工业软件应用商店</small>');
    document.writeln('</a>');
    document.writeln('<a id="href1" href="#/" class="navbar-brand">');
    document.writeln('<small><i class="active showAppNameDiv"></i></small>');
    document.writeln('</a>');
    document.writeln('</div>');
    //最左侧的文字和按钮-结束

    //右侧用户名登录信息等-开始
    document.writeln('<div class="navbar-header pull-right" role="navigation">');
    document.writeln('<ul class="nav ace-nav" style="height: 20px;">');
    document.writeln('<li class="light-blue">');//li--------
    document.writeln('<a data-toggle="dropdown" href="#" class="dropdown-toggle">');
    document.writeln('<img id="userAvatar" class="nav-user-photo" type="text/javascript" src="'+staticDir+'ace/assets/images/avatars/avatar2.png" alt="用户头像" />');
    document.writeln('<span class="user-info">');
    document.writeln('<small>欢迎光临,</small>');
    document.writeln('<span id="userName"></span>');
    document.writeln('</span>');
    document.writeln('<i class="icon-caret-down"></i>');
    document.writeln('</a>');
    document.writeln('<ul id="userDropDown" class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close"></ul>');
    document.writeln('</li>');//li-------
    document.writeln('</ul>');
    document.writeln('</div>');
    //右侧用户名登录信息等-结束

    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
}

function navBarShowAceIndexFyb(titleUrl, titleName, subName, welcomeText, shortCutText, shortCutLiColor, shortCutHref, shortCutSrc){
    //titleUrl:顶栏的链接,titleUrl=‘http://localhost:8081/MESAppStore/’;
    //titleName:标题名称，titleName=‘新一代工业软件应用商店’；subName:子名称，subName=‘工业软件库’；
    //welcomeText：欢迎词，welcomeText=‘欢迎光临,’；shortCutText:右侧的三个快捷按钮文本，shortCutText=['平台主页','数据聚合','情景推荐'];。
    //shortCutLiColor:右侧的三个快捷按钮的背景色。shortCutLiColor=['grey','purple','green'];
    //shortCutHref：右侧的三个快捷按钮的链接。shortCutHref=['#','#','#'];
    //shortCutSrc：右侧的三个快捷按钮的图片源链接.shortCutSrc=shortCutHref=['#','#','https://www.baidu.com'];
    //创建者：付颖斌；创建时间：2021.8.2;修改者：付颖斌;修改时间：2021年8月5日。
    //修改后测试通过。2021.8.5
    //例子：
    //shortCutText=['平台主页','数据聚合','情景推荐'];
    //shortCutLiColor=['grey','purple','green'];
    //shortCutHref=['#','#','https://www.baidu.com'];
    //shortCutSrc=['static/ace/assets/images/avatars/platform.png','static/ace/assets/images/avatars/process.png','static/ace/assets/images/avatars/support.png'];
    //navBarShowAceIndexFyb("","新一代工业软件应用商店","工业软件库","欢迎光临",shortCutText, shortCutLiColor, shortCutHref, shortCutSrc);
    //
    document.writeln('<div class="navbar navbar-default" id="navbar">');
    document.writeln('<div class="navbar navbar-default" id="navbarHtml">');
    document.writeln('<div class="navbar-container" id="navbar-container">');
    document.writeln('<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebarDiv">');
    document.writeln('<span class="sr-only">Toggle sidebar</span>');
    document.writeln('<span class="icon-bar"></span>');
    document.writeln('<span class="icon-bar"></span>');
    document.writeln('<span class="icon-bar"></span>');
    document.writeln('</button>');
    document.writeln('<div class="navbar-header pull-left">');
    document.writeln('<a id="href0" href="'+ titleUrl +'" class="navbar-brand">');
    document.writeln('<small>');
    document.writeln('<i class="fa fa-leaf"></i>'+ titleName + '</small>');
    document.writeln('</a>');
    document.writeln('<a id="href1" href="#" class="navbar-brand">');
    document.writeln('<small>');
    document.writeln('<small><i>' + subName + '</i></small>');
    document.writeln('</small>');
    document.writeln('</a>');
    document.writeln('</div>');
    document.writeln('<div class="navbar-header pull-right" role="navigation">');
    document.writeln('<ul class="nav ace-nav" style="height: 20px;">');
    //加载右侧的三个快捷键，或者n个快捷键
    for(var i=0;i<shortCutText.length;i++)
    {
        document.writeln('<li class="'+ shortCutLiColor[i] +'">');
        document.writeln('<a data-toggle="dropdown" href="'+ shortCutHref[i] +'"  class="dropdown-toggle">');
        document.writeln('<img class="nav-user-photo" type="text/javascript" src="'+ shortCutSrc[i] +'" alt=""/>'+shortCutText[i]);
        document.writeln('</a>');
        document.writeln('</li>');
    }

    //document.writeln('<li class="grey">');
    //document.writeln('<a id="href2" data-toggle="dropdown" href="#"  class="dropdown-toggle">');
    //document.writeln('<img class="nav-user-photo" type="text/javascript" src="static/ace/assets/images/avatars/platform.png" alt="平台首页"/>'+shortCutText[0]);
    //document.writeln('</a>');
    //document.writeln('</li>');

    //document.writeln('<li class="purple">');
    //document.writeln('<a data-toggle="dropdown" href="#" class="dropdown-toggle" >');
    //document.writeln('<img class="nav-user-photo" type="text/javascript" src="static/ace/assets/images/avatars/process.png" alt="模板层"/>'+shortCutText[1]);
    //document.writeln('</a>');
    //document.writeln('</li>');

    //document.writeln('<li class="green">');
    //document.writeln('<a data-toggle="dropdown" href="#" class="dropdown-toggle">');
    //document.writeln('<img class="nav-user-photo" type="text/javascript" src="static/ace/assets/images/avatars/support.png" alt="工具集"/>'+shortCutText[2]);
    //document.writeln('</i>');
    //document.writeln('</a>');
    //document.writeln('</li>');

    document.writeln('<li class="light-blue">');
    document.writeln(' <a data-toggle="dropdown" href="#" class="dropdown-toggle">');
    document.writeln('<img id="userAvatar" class="nav-user-photo" type="text/javascript" src="static/ace/assets/images/avatars/avatar2.png"alt="用户头像" />');
    document.writeln('<span class="user-info">');
    document.writeln('<small>' + welcomeText + '</small>');
    document.writeln('<span id="userName">');
    document.writeln('</span>');
    document.writeln('</span>');
    document.writeln('<i class="icon-caret-down"></i>');
    document.writeln('</a>');
    document.writeln('<ul id="userDropDown" class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">');
    document.writeln('</ul>');
    document.writeln('</li>');
    document.writeln('</ul>');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('');

}

function leftTopNavBarControlButtonAceFyb(buttonClass, dataToggle, dataTarget, buttonID, iClass) {
    //左侧侧边栏顶部 几个控制按钮
    //buttonClass:对应class="btn btn-success"；dataToggle：对应data-toggle="tab"；dataTarget:对应data-target="#newProjectModal"
    //buttonID：对应id="checkProjectMana"；
    //iClass：对应<i class="ace-icon fa fa-cog"></i>。主要显示图标，
    //iClass图标模式有：['ace-icon fa fa-cog','ace-icon fa fa-table','ace-icon fa fa-users','ace-icon fa fa-bell-o','ace-icon fa fa-pencil','ace-icon fa fa-question-circle', 'ace-icon fa fa-paper-plane'];
    //创建者：付颖斌；创建时间：2021.8.9;修改者：付颖斌;修改时间：2021年8月9日。
    //修改后测试通过。2021.8.9
    //例子：
    //buttonClass=['btn btn-success','btn btn-info','btn btn-warning','btn btn-danger'];
    //dataToggle=['tab','modal','modal','modal'];
    //dataTarget=['#projectManagementDiv','#newProjectModal','#helpModal','#dangerModal'];
    //buttonID=['','','',''];
    //iClass=['ace-icon fa fa-cog','ace-icon fa fa-table','ace-icon fa fa-users','ace-icon fa fa-bell-o'];
    //leftTopNavBarControlButtonAceFyb(buttonClass, dataToggle, dataTarget, buttonID, iClass);
    //buttonClass=[];
    //leftTopNavBarControlButtonAceFyb();
    document.writeln('<div class="sidebar-shortcuts" id="sidebar-shortcuts">');
    document.writeln('<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">');
    for(var i=0;i<buttonClass.length;i++)
    {
        document.writeln('<button class="'+ buttonClass[i] +'" data-toggle="'+ dataToggle[i] +'" data-target="'+ dataTarget[i] +'" id="'+ buttonID[i] +'">');
        document.writeln('<i class="'+ iClass[i] +'"></i>');
        document.writeln('</button>');
    }
    document.writeln('</div>');
    document.writeln('<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">');
    for(var i=0;i<buttonClass.length;i++)
    {
        document.writeln('<span class="'+ buttonClass[i] +'"></span>');
    }
    document.writeln('</div>');
    document.writeln('</div>');
}

function leftContentNavBarAceFyb(titleData, titleiClass, titleHref, cotentData, contentiClass, cotentDataHref, menuOpenIndex=[0,0]){
    //侧面导航栏的实际内容:titleData:顶层目录；titleiClass:顶层目录图标；titleHref:顶层目录链接;
    //cotentData:顶层目录下的子目录;contentiClass:顶层目录下的子目录图标;cotentDataHref:子目录对应的链接;menuOpenIndex,第几个目录打开,如果值为[0,0],那么表示第一个侧边栏的第一行目录打开
    //创建者:付颖斌;创建时间:2020.8.2；修改者：付颖斌;修改时间：2021年11月12日
    //测试通过 2021.11.12
    //例子:
    //             var titleData=['车间监控节点编辑','节点与资源绑定','数采设备编码','数采设备与节点绑定'];
    //             var titleiClass=['menu-icon fa fa-cloud','menu-icon fa fa-list','',''];
    //             var titleHref=['','','',''];
    //             var cotentData=new Array();
    //             var contentiClass=new Array();
    //             var cotentDataHref=new Array();
    //             cotentData[0]=['车间监控节点列表','新建车间监控节点','编辑车间监控节点'];
    //             contentiClass[0]=['menu-icon fa fa-caret-right','','',''];
    //             cotentDataHref[0]=['/web/nodeList.html','/web/newNode.html','/web/nodeEdit.html'];
    //             cotentData[1]=['节点与资源绑定列表','新建节点与资源关系','编辑节点与资源关系'];
    //             contentiClass[1]=['','','',''];
    //             cotentDataHref[1]=['/web/nodeResourceList.html','/web/newNodeAndResourceRelate.html','/web/nodeResourceEdit.html'];
    //             cotentData[2]=['数采设备列表','新建数采设备','编辑数采设备'];
    //             contentiClass[2]=['','','',''];
    //             cotentDataHref[2]=['/web/dataCollectList.html','/web/newDataCollectDevice.html','/web/editeDataDevice.html'];
    //             cotentData[3]=['节点与设备关系列表','新建节点与设备关系','编辑节点与设备关系'];
    //             contentiClass[3]=['','','',''];
    //             cotentDataHref[3]=['/web/nodeAndDeviceList.html','/web/newNodeAndDevice.html','/web/editeNodeAndDevice.html'];
    //             leftContentNavBarAceFyb(titleData, titleiClass, titleHref, cotentData, contentiClass, cotentDataHref, 0);
    document.writeln('<ul class="nav nav-list" style="top: 0px;">');
    for(var i=0;i<titleData.length;i++)
    {
        if(menuOpenIndex[0]==i){
            document.writeln('<li class="active open">');
        }else{
            document.writeln('<li class>');
        }
        //document.writeln('<li class="">');
        document.writeln('<a href="'+ titleHref[i] +'" class="dropdown-toggle">');
        document.writeln('<i class="fa '+ titleiClass[i] +'"></i>');
        document.writeln('<span class="menu-text" style="font-weight:bolder;">'+titleData[i]+'</span>');

        if(cotentData.length>0)
        {
            if(cotentData[i].length>0)
            {
                document.writeln('<b class="arrow fa fa-angle-down"></b>');
                document.writeln('</a>');
                document.writeln('<b class="arrow"></b>');
                if(menuOpenIndex[0]==i){
                    document.writeln('<ul class="submenu nav-show" style="display: block;">');
                }else{
                    document.writeln('<ul class="submenu">');
                }
                //document.writeln('<ul class="submenu">');
                for(var j=0;j<cotentData[i].length;j++)//写子目录
                {
                    if(menuOpenIndex[0]==i && menuOpenIndex[1]==j){document.writeln('<li class="active">');
                    }else{document.writeln('<li class="">');
                    }
                    //document.writeln('<li class="">');
                    document.writeln('<a href="'+cotentDataHref[i][j]+'">');
                    document.write('<i class="fa '+ contentiClass[i][j] +'"></i>');
                    document.write(cotentData[i][j]);
                    document.writeln('</a>');
                    document.writeln('<b class="arrow"></b>');
                    document.writeln('</li>');
                }
            document.writeln('</ul>');
            }else{
                document.writeln('</a>');
            }

        }else{
            document.writeln('</a>');
        }
        document.writeln('</li>');
    }

    document.writeln('</ul>');
    //侧边收缩栏
    document.writeln('<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">');
    document.writeln('<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state"');
    document.writeln('data-icon1="ace-icon fa fa-angle-double-left"');
    document.writeln('data-icon2="ace-icon fa fa-angle-double-right"></i>');
    document.writeln('</div>');
}

function getNavBarMenuActiveId(urlString, urlMatrix, menuIDMatrix, splitSymbol){
    //侧面导航栏自动打开时，需要定位，这个就是为leftContentNavBarAceFyb函数服务，返回值是leftContentNavBarAceFyb函数的最后一个参数:menuOpenIndex
    //urlString:url地址,如urlListModify;urlMatrix是侧边栏目录的url矩阵，需要在这里面搜索,然后在menuIDMatrix找到二级目录的menu_id(格式为：0@0)(0:第1层目录中的第一个,第二行目录中的第1个)
    //urlMatrix:  ;menuIDMatrix  ;splitSymbol:分割符号,如:("@");
    //创建者:付颖斌;创建时间:2021.11.12；修改者：付颖斌;修改时间：2021年11月12日
    //测试通过 2021.11.12
    //例子:
    bakMatrix=[0,0]
    for(var i=0;i<urlMatrix.length;i++)
    {
        for(var j=0; j<urlMatrix[i].length;j++)
        {
            if(urlString==urlMatrix[i][j])
            {//
                tempData=menuIDMatrix[i][j].split(splitSymbol);
                if(tempData.length>1){
                    bakMatrix[0]=tempData[0];
                    bakMatrix[1]=tempData[1];
                }
            }
        }
    }
    return bakMatrix;
}

function copyRightAceFyb(copyRightString, copyRightHref, copyRightYear) {
    //版权说明
    //创建者：付颖斌；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：    copyRightAceFyb('西安交通大学CAD/CAM研究室', 'http://innovation.xjtu.edu.cn/', 'Copyright&copy; 2017');
    document.writeln('<div class="footer" id="copyRightHtml">');
    document.writeln('<div class="footer-inner">');
    document.writeln('<div class="footer-content" style="left: 2px;right: 2px;padding: 0px;">');
    document.writeln('<ul>');
    document.writeln('<span class="bigger-120">');
    document.writeln('<span class="blue bolder">');
    document.writeln('<a href="'+copyRightHref+'">'+copyRightString+'</a>');
    document.writeln('</span>');
    document.writeln('</span>');
    document.writeln('<span id="footer_data">Copyright&copy; '+copyRightYear+'</span>');
    document.writeln('</ul>');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
}

function breadCrumbsAceFyb(titleBreadData,otherBreadData, searchString) {
    //嵌入面包屑;titleBreadData:第一个面包屑的文本[0]及href[1];otherBreadData:其他面包屑的文本[0]及href[1],可以多级，详情见例子
    //searchString:搜索信息矩阵，searchString[0]:是否显示搜索框;searchString[1]:搜索框显示的文本
    //创建者:付颖斌,创建时间:2020.8.2;修改者:付颖斌;修改时间：2021年8月11日
    //测试已通过:2021.8.11
    //例子：var titleBreadData=['新一代工业软件平台','#'];
    //    var searchString=['show','请输入名称'];//除‘show’之外的字符串，都不会显示搜索框
    //    var otherBreadData=new Array();
    //    otherBreadData[0]=['工业软件库','#'];
    //    otherBreadData[1]=['test','#'];
    //   breadCrumbsAceFyb(titleBreadData,otherBreadData);
    var searchInputID='cityName';
    document.writeln('<div class="breadcrumbs ace-save-state" id="breadcrumbsHtml">');
    document.writeln('<ul class="breadcrumb">');
    document.writeln('<li>');
    document.writeln('<i class="ace-icon fa fa-home home-icon"></i>');
    document.writeln('<a href="'+titleBreadData[1]+'">'+titleBreadData[0]+'</a>');
    document.writeln('</li>');
    //document.writeln('<li class="active showAppNameDiv"></li>');
    for(var i=0;i<otherBreadData.length;i++){
        document.writeln('<li>');
        document.writeln('<a href="'+otherBreadData[i][1]+'">'+otherBreadData[i][0]+'</a>');
        document.writeln('</li>');
    }
    //搜索框
    if(searchString[0]=='show')//表示搜索框显示
    {
        document.writeln('<div class="nav-search" id="nav-search">');
        document.writeln('<form class="form-search">');
        document.writeln('<span class="input-icon">');
        document.writeln('<input type="text" placeholder="'+ searchString[1] +'" class="nav-search-input selectInput"');
        document.writeln('list="cityList" value="" onfocus="fuzzySearch.call(this)" id="cityName" autocomplete="off">');
        document.writeln('<i class="ace-icon fa fa-search nav-search-icon"></i>');
        document.writeln('</span>');
        document.writeln('</form>');
        document.writeln('</div>');
        document.writeln('');
    }
    document.writeln('</div>');
    return searchInputID;
}

function subContentPageAceFyb(pageTitleName,activeIden,pageTitleHref) {
    //pageTitleName：标题字符串；activeString:取值为：true或者false;pageTitleHref:链接
    //创建者：付颖斌；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：subContentPageAceFyb('付颖斌测试',true,'#');
    //subContentPageAceFyb('sss',false,'#');
    if(activeIden==true){
        document.writeln('<li class="active">');
    }else {
        document.writeln('<li>');
    }
    document.writeln('<a data-toggle="tab" href="'+pageTitleHref+'">');
    document.writeln('<i class="green ace-icon fa fa-desktop bigger-120"></i>'+pageTitleName+'</a>');
    document.writeln('</li>');
}

function labelInputShowAceFyb(labelString,inputData,otherData) {
    //生成一行表单，包括标签和输入框;labelString:标签显示文本[0]+id[1](这个一般和inputData[1]相同)；inputData:输入框的一些基本信息，type为[0],id为[1],placeholder为[2],class为[3]
    //otherData：其他控件需要的数据
    //创建者：付颖斌；修改者：付颖斌;修改时间：2021年10月19日
    //输入类型'text','select','password','number','password','date' 已经测试通过，测试日期:2021年10月19日
    //例子：labelInputShowAceFyb(['测试','form-field-fyb-1'],['text','form-field-fyb-1','填写背景说明','col-xs-10 col-sm-5'],['','']);
    //选项框：labelInputShowAceFyb(['采集信息','form-nodeInfor-1'],['checkbox','form-nodeInfor-1','对节点监控信息的表述','ace'],['温度','湿度','人员','定位','功率']);
    //列表框：labelInputShowAceFyb(['节点属性','form-nodeAttribute-1'],['select','form-nodeAttribute-1','固定/移动','col-xs-10 col-sm-5'],['固定','移动']);
    //日历：labelInputShowAceFyb(['发布时间：','form-appPubTime-1'],['date','form-appPubTime-1','发布时间','col-xs-10 col-sm-5'],['','']);
    document.writeln('<div class="form-group">');
    document.writeln('<label class="col-sm-3 control-label no-padding-right" for="'+labelString[1]+'">'+labelString[0]+'</label>');
    document.writeln('<div class="col-sm-9">');
    if(inputData[0]=='text')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" style="width: 100%;">');
        document.writeln('</input>');
    }else if(inputData[0]=='checkbox')
    {
        for(var i=0;i<otherData.length;i++)
        {
            document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'-'+i+'" class="'+inputData[3]+'" name="'+inputData[1]+'" value="'+otherData[i]+'" style="width: 100%;">');
            document.writeln('<span class="lbl">'+otherData[i]+'</span>');
            if(i>0 && i%5==0)
            {//如果选项框>6则另起一行
                document.writeln('<br>');
            }
            document.writeln('</input>');
        }
    }else if(inputData[0]=='select')
    {
        document.writeln('<select class="'+inputData[3]+'" id="'+inputData[1]+'" style="width: 100%;">');
        for(var i=0;i<otherData.length;i++)
        {
            document.writeln('<option value="'+otherData[i]+'" style="width: 100%;">'+otherData[i]+'</option>');
        }
        document.writeln('</select>');
    }else if(inputData[0]=='number')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" style="width: 100%;">');
        document.writeln('</input>');
    }else if(inputData[0]=='password')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" style="width: 100%;">');
        document.writeln('</input>');
    }else if(inputData[0]=='date')//显示日历
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" style="width: 100%;">');
        document.writeln('</input>');
    }
    document.writeln('</div>');
    document.writeln('</div>');
}

function labelInputFullShowAceFyb(labelString,inputData,otherData) {
    //labelInputFullShowAceFyb与labelInputShowAceFyb的区别是，labelInputFullShowAceFyb将表单包含了进去
    //生成一行表单，包括标签和输入框;labelString:标签显示文本[0]+id[1](这个一般和inputData[1]相同)；inputData:输入框的一些基本信息，type为[0],id为[1],placeholder为[2],class为[3]
    //otherData：其他控件需要的数据
    //创建者：付颖斌；修改者：付颖斌;修改时间：2021年10月19日
    //输入类型'text','select','password','number','password','date' 已经测试通过，测试日期:2021年10月19日
    //例子：labelInputFullShowAceFyb(['测试','form-field-fyb-1'],['text','form-field-fyb-1','填写背景说明','col-xs-10 col-sm-5'],['','']);
    //选项框：labelInputFullShowAceFyb(['采集信息','form-nodeInfor-1'],['checkbox','form-nodeInfor-1','对节点监控信息的表述','ace'],['温度','湿度','人员','定位','功率']);
    //列表框：labelInputFullShowAceFyb(['节点属性','form-nodeAttribute-1'],['select','form-nodeAttribute-1','固定/移动','col-xs-10 col-sm-5'],['固定','移动']);
    //日历：labelInputFullShowAceFyb(['发布时间：','form-appPubTime-1'],['date','form-appPubTime-1','发布时间','col-xs-10 col-sm-5'],['','']);
    document.writeln('<div class="tab-content" id="pageContent">');
    document.writeln('<form class="form-horizontal" role="form">');
    document.writeln('<div class="form-group">');
    document.writeln('<label class="col-sm-3 control-label no-padding-right" for="'+labelString[1]+'">'+labelString[0]+'</label>');
    document.writeln('<div class="col-sm-9">');
    if(inputData[0]=='text')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'">');
        document.writeln('</input>');
    }else if(inputData[0]=='checkbox')
    {
        for(var i=0;i<otherData.length;i++)
        {
            document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'-'+i+'" class="'+inputData[3]+'" name="'+inputData[1]+'" value="'+otherData[i]+'">');
            document.writeln('<span class="lbl">'+otherData[i]+'</span>');
            if(i>0 && i%5==0)
            {//如果选项框>6则另起一行
                document.writeln('<br>');
            }
            document.writeln('</input>');
        }
    }else if(inputData[0]=='select')
    {
        document.writeln('<select class="'+inputData[3]+'" id="'+inputData[1]+'">');
        for(var i=0;i<otherData.length;i++)
        {
            document.writeln('<option value="'+otherData[i]+'">'+otherData[i]+'</option>');
        }
        document.writeln('</select>');
    }else if(inputData[0]=='number')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'">');
        document.writeln('</input>');
    }else if(inputData[0]=='password')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'">');
        document.writeln('</input>');
    }else if(inputData[0]=='date')//显示日历
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'">');
        document.writeln('</input>');
    }
    document.writeln('</div>');
    document.writeln('</div>');

    document.writeln('</div>');
    document.writeln('</form>');
}

function labelInputDataShowAceFyb(labelString,inputData,otherData,valueData) {
    //生成一行表单，包括标签和输入框,并将数据填入到输入框中;
    //labelString:标签显示文本[0]+id[1](这个一般和inputData[1]相同)；inputData:输入框的一些基本信息，type为[0],id为[1],placeholder为[2],class为[3]
    //otherData：其他控件需要的数据；valueData:需要填入的数据
    //创建者：付颖斌；创建时间：2020/8/1；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：
    //var checkBoxList=['温度','湿度','RFID标签','人员','定位','功率','视频','音频'];
    //输入框：labelInputDataShowAceFyb(['节点名称','form-nodeName-1'],['text','form-nodeName-1','描述节点名称','col-xs-10 col-sm-5'],['',''],'写入输入框的内容');
    //选项框：labelInputDataShowAceFyb(['采集信息','form-nodeInfor-1'],['checkbox','form-nodeInfor-1','对节点监控信息的表述','ace'],checkBoxList,'温度|RFID标签|人员|视频|');
    //列表框：labelInputDataShowAceFyb(['节点属性','form-nodeAttribute-1'],['select','form-nodeAttribute-1','固定/移动','col-xs-10 col-sm-5'],['固定','移动'],'固定');
    document.writeln('<div class="form-group">');
    document.writeln('<label class="col-sm-3 control-label no-padding-right" for="'+labelString[1]+'">'+labelString[0]+'</label>');
    document.writeln('<div class="col-sm-9">');
    if(inputData[0]=='text')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" value="'+valueData+'"></input>');
    }else if(inputData[0]=='checkbox')
    {
        var tempMatrix=valueData.split('|');
        var checkBoxValueDict=new Array();
        for(var j=0;j<otherData.length;j++)
        {
            checkBoxValueDict[otherData[j]]=false;
        }
        for(var j=0;j<tempMatrix.length;j++)
        {
            checkBoxValueDict[tempMatrix[j]]=true;
        }
        for(var i=0;i<otherData.length;i++)
        {
            if(checkBoxValueDict[otherData[i]]==true){
                document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'-'+i+'" class="'+inputData[3]+'" name="'+inputData[1]+'" value="'+otherData[i]+'" checked="checked">');
                document.writeln('</input>');
            }else{
                document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'-'+i+'" class="'+inputData[3]+'" name="'+inputData[1]+'" value="'+otherData[i]+'">');
                document.writeln('</input>');
            }
            document.writeln('<span class="lbl">'+otherData[i]+'</span>');
            if(i>0 && i%5==0)
            {//如果选项框>6则另起一行
                document.writeln('<br>');
            }
        }
    }else if(inputData[0]=='select')
    {
        document.writeln('<select class="'+inputData[3]+'" id="'+inputData[1]+'">');
        for(var i=0;i<otherData.length;i++)
        {
            if(valueData==otherData[i])
            {
                document.writeln('<option value="'+otherData[i]+'" selected="selected">'+otherData[i]+'</option>');
            }else {
                document.writeln('<option value="'+otherData[i]+'" >'+otherData[i]+'</option>');
            }
        }
        document.writeln('</select>');
    }else if(inputData[0]=='number')
    {
        document.writeln('<input type="'+inputData[0]+'" id="'+inputData[1]+'" placeholder="'+inputData[2]+'" class="'+inputData[3]+'" value="'+valueData+'"></input>');
    }
    document.writeln('</div>');
    document.writeln('</div>');
}

function tableSimpleShowAceFyb(tableID, tableTitleMatrix,tableTitleClass, tableDataMatrix) {
    //生成表格的函数。tableID:表的唯一ID号码；tableTitleMatrix:表头矩阵,tableTitleClass:表头每列class属性的矩阵；
    //tableDataMatrix：表格数据的矩阵
    document.writeln('<table id="'+tableID+'" class="table  table-bordered table-hover">');
    document.writeln('<thead>');//表头-开始
    document.writeln('<tr>');
    for(var i=0;i<tableTitleClass.length;i++)
    {
        document.writeln('<th class="'+tableTitleClass[i]+'">'+tableTitleMatrix[i]+'</th>');
    }
    document.writeln('</tr>');
    document.writeln('</thead>');//表头-结束
    document.writeln('<tbody>');//表格内容-开始
    for(var i=0;i<tableDataMatrix.length;i++)
    {
        document.writeln('<tr>');
        for(var j=0;j<tableDataMatrix[i].length;j++)
        {
            document.writeln('<td class="center">');
            document.writeln('<label>');
            document.writeln(tableDataMatrix[i][j]);
            document.writeln('</label>');
            document.writeln('</td>');
        }
        document.writeln('</tr>');
    }

    document.writeln('</tbody>');//表格内容-结束
    document.writeln('</table>');

}

function tableSimpleModifyAceFyb(tableID, tableDataMatrix) {
    //修改表格里面的数据。tableID:表的唯一ID号码；
    //tableTitleMatrix:表头矩阵,tableTitleClass:表头每列class属性的矩阵；
    //tableDataMatrix：表格数据的矩阵
    var myTableFyb=document.getElementById(tableID);
    //alert(myTableFyb.rows[0].innerText);
    //alert(myTableFyb.rows[1].cells[0].innerText);
    //alert(myTableFyb.rows[1].cells[0].innerHTML);
    //alert(tableDataMatrix.length);
    for(var i=0;i<tableDataMatrix.length;i++)
    {
        for(var j=0;j<tableDataMatrix[i].length;j++)
        {
            myTableFyb.rows[i+1].cells[j].innerHTML='<label>'+tableDataMatrix[i][j]+'</label>';
        }
    }

}

function tableAddControlShowAceFyb(tableID, tableTitleMatrix,tableTitleClass, tableTitleStyle, tableDataMatrix,lastControlMatrix) {
    //生成表格的函数,最后一列加入控制按钮。tableID:表的唯一ID号码；tableTitleMatrix:表头矩阵,tableTitleClass:表头每列class属性的矩阵；
    //tableTitleStyle:表头style格式的数据，主要设置是否隐藏，用display:none;tableDataMatrix：表格数据的矩阵;lastControlMatrix:最后一列的控制按钮,取值为1-4，分别为四种控制按钮类型
    //lastControlID:控制按钮的ID矩阵
    document.writeln('<table id="'+tableID+'" class="table  table-bordered table-hover">');
    document.writeln('<thead>');//表头-开始
    document.writeln('<tr>');
    for(var i=0;i<tableTitleClass.length;i++)
    {
        document.writeln('<th class="'+tableTitleClass[i]+'" style="'+tableTitleStyle[i]+'">'+tableTitleMatrix[i]+'</th>');
    }
    document.writeln('<th></th>')//最后一列，加入控制按钮
    document.writeln('</tr>');
    document.writeln('</thead>');//表头-结束
    document.writeln('<tbody>');//表格内容-开始
    for(var i=0;i<tableDataMatrix.length;i++)
    {
        document.writeln('<tr>');
        for(var j=0;j<tableDataMatrix[i].length;j++)
        {
            document.writeln('<td class="center" style="'+tableTitleStyle[j]+'">');
            document.writeln('<label>');
            document.writeln(tableDataMatrix[i][j]);
            document.writeln('</label>');
            document.writeln('</td>');
        }
        //加入最后一列的控制按钮
        document.writeln('<td>');
        document.writeln('<div class="hidden-sm hidden-xs btn-group">');
        for(var j=0;j<lastControlMatrix.length;j++)
        {
            if(lastControlMatrix[j]=='success')
            {
                document.writeln('<button class="btn btn-xs btn-success" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-check bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='modify')
            {
                document.writeln('<button class="btn btn-xs btn-info" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-pencil bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='delete')
            {
                document.writeln('<button class="btn btn-xs btn-danger" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-trash-o bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='warning')
            {
                document.writeln('<button class="btn btn-xs btn-warning" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-flag bigger-120"></i>');
                document.writeln('</button>');
            }

        }
        document.writeln('</div>');
        document.writeln('</td>');
        
        document.writeln('</tr>');
    }

    document.writeln('</tbody>');//表格内容-结束
    document.writeln('</table>');

}

function tableAddControlAndUrlShowAceFyb(tableID, tableTitleMatrix,tableTitleClass, tableTitleStyle, tableDataMatrix, tableHrefMatrix, lastControlMatrix) {
    //生成表格的函数,添加链接，最后一列加入控制按钮。tableID:表的唯一ID号码；tableTitleMatrix:表头矩阵,tableTitleClass:表头每列class属性的矩阵；
    //tableTitleStyle:表头style格式的数据，主要设置是否隐藏，用display:none;tableDataMatrix：表格数据的矩阵;lastControlMatrix:最后一列的控制按钮,取值为1-4，分别为四种控制按钮类型
    //tableHrefMatrix:表格中链接的矩阵. lastControlID:控制按钮的ID矩阵.
    //创建者：付颖斌；创建时间：2021/11/12；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：
    //var tableID='fybtable';
    //var tableTitleMatrix=['id','序号','url名称','url链接', '测试|编辑',];
    //var tableTitleClass=['','','','','',];
    //var tableTitleStyle=['display:none','','','','','','','','','','','','',];
    //var lastControlMatrix=['warning','modify'];
    //var tableDataMatrix=new Array();
    //var tableHrefMatrix=new Array();
    //for(var i=0;i<queryData.length;i++)
    //{
    //    tableDataMatrix[i]=[queryData[i]['id'], i+1,queryData[i]['html_name'],queryData[i]['html_url'],];
    //    tableHrefMatrix[i]=['#','#','',queryData[i]['html_url'],''];
    //}
    //tableAddControlAndUrlShowAceFyb(tableID, tableTitleMatrix,tableTitleClass,tableTitleStyle, tableDataMatrix, tableHrefMatrix, lastControlMatrix)

    document.writeln('<table id="'+tableID+'" class="table  table-bordered table-hover">');
    document.writeln('<thead>');//表头-开始
    document.writeln('<tr>');
    for(var i=0;i<tableTitleClass.length;i++)
    {
        document.writeln('<th class="'+tableTitleClass[i]+'" style="'+tableTitleStyle[i]+'">'+tableTitleMatrix[i]+'</th>');
    }
    document.writeln('<th></th>')//最后一列，加入控制按钮
    document.writeln('</tr>');
    document.writeln('</thead>');//表头-结束
    document.writeln('<tbody>');//表格内容-开始
    for(var i=0;i<tableDataMatrix.length;i++)
    {
        document.writeln('<tr>');
        for(var j=0;j<tableDataMatrix[i].length;j++)
        {
            document.writeln('<td class="center" style="'+tableTitleStyle[j]+'">');
            if(tableHrefMatrix[i][j]=="" || tableHrefMatrix[i][j]=="#"){
                document.writeln('<label>');
                document.writeln(tableDataMatrix[i][j]);
                document.writeln('</label>');
            }else{
                document.writeln('<a href="'+ tableHrefMatrix[i][j] +'">');
                document.writeln(tableDataMatrix[i][j]);
                document.writeln('</a>');
            }
            document.writeln('</td>');
        }
        //加入最后一列的控制按钮
        document.writeln('<td>');
        document.writeln('<div class="hidden-sm hidden-xs btn-group">');
        for(var j=0;j<lastControlMatrix.length;j++)
        {
            if(lastControlMatrix[j]=='success')
            {
                document.writeln('<button class="btn btn-xs btn-success" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-check bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='modify')
            {
                document.writeln('<button class="btn btn-xs btn-info" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-pencil bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='delete')
            {
                document.writeln('<button class="btn btn-xs btn-danger" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-trash-o bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='warning')
            {
                document.writeln('<button class="btn btn-xs btn-warning" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-flag bigger-120"></i>');
                document.writeln('</button>');
            }

        }
        document.writeln('</div>');
        document.writeln('</td>');

        document.writeln('</tr>');
    }

    document.writeln('</tbody>');//表格内容-结束
    document.writeln('</table>');

}

function tableAddControlAndOnclickAceFyb(tableID, tableTitleMatrix,tableTitleClass, tableTitleStyle, tableDataMatrix, tableOnClickMatrix, lastControlMatrix) {
    //生成表格的函数,添加链接，最后一列加入控制按钮。tableID:表的唯一ID号码；tableTitleMatrix:表头矩阵,tableTitleClass:表头每列class属性的矩阵；
    //tableTitleStyle:表头style格式的数据，主要设置是否隐藏，用display:none;tableDataMatrix：表格数据的矩阵;lastControlMatrix:最后一列的控制按钮,取值为1-4，分别为四种控制按钮类型
    //tableOnClickMatrix:表格中可以点击触发的矩阵. lastControlID:控制按钮的ID矩阵.
    //创建者：付颖斌；创建时间：2021/11/17；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：
    //var tableID='fybtable';
    //var tableTitleMatrix=['id','序号','url名称','url链接', '测试|编辑',];
    //var tableTitleClass=['','','','','',];
    //var tableTitleStyle=['display:none','','','','','','','','','','','','',];
    //var lastControlMatrix=['warning','modify'];
    //var tableDataMatrix=new Array();
    //var tableOnClickMatrix=new Array();
    //for(var i=0;i<queryData.length;i++)
    //{
    //    tableDataMatrix[i]=[queryData[i]['id'], i+1,queryData[i]['html_name'],queryData[i]['html_url'],];
    //    tableOnClickMatrix[i]=['#','#','','', "roleMenuListEdit('"+queryData[i]['role_str']+"')",''];
    //}
    //tableAddControlAndOnclickAceFyb(tableID, tableTitleMatrix,tableTitleClass,tableTitleStyle, tableDataMatrix, tableOnClickMatrix, lastControlMatrix)

    document.writeln('<table id="'+tableID+'" class="table  table-bordered table-hover">');
    document.writeln('<thead>');//表头-开始
    document.writeln('<tr>');
    for(var i=0;i<tableTitleClass.length;i++)
    {
        document.writeln('<th class="'+tableTitleClass[i]+'" style="'+tableTitleStyle[i]+'">'+tableTitleMatrix[i]+'</th>');
    }
    document.writeln('<th></th>')//最后一列，加入控制按钮
    document.writeln('</tr>');
    document.writeln('</thead>');//表头-结束
    document.writeln('<tbody>');//表格内容-开始
    for(var i=0;i<tableDataMatrix.length;i++)
    {
        document.writeln('<tr>');
        for(var j=0;j<tableDataMatrix[i].length;j++)
        {
            document.writeln('<td class="center" style="'+tableTitleStyle[j]+'">');
            if(tableOnClickMatrix[i][j]=="" || tableOnClickMatrix[i][j]=="#"){
                document.writeln('<label>');
                document.writeln(tableDataMatrix[i][j]);
                document.writeln('</label>');
            }else{
                document.writeln('<a onclick="'+ tableOnClickMatrix[i][j] +'">');
                document.writeln(tableDataMatrix[i][j]);
                document.writeln('</a>');
            }
            document.writeln('</td>');
        }
        //加入最后一列的控制按钮
        document.writeln('<td>');
        document.writeln('<div class="hidden-sm hidden-xs btn-group">');
        for(var j=0;j<lastControlMatrix.length;j++)
        {
            if(lastControlMatrix[j]=='success')
            {
                document.writeln('<button class="btn btn-xs btn-success" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-check bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='modify')
            {
                document.writeln('<button class="btn btn-xs btn-info" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-pencil bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='delete')
            {
                document.writeln('<button class="btn btn-xs btn-danger" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-trash-o bigger-120"></i>');
                document.writeln('</button>');
            }else if(lastControlMatrix[j]=='warning')
            {
                document.writeln('<button class="btn btn-xs btn-warning" value="'+lastControlMatrix[j]+'|'+tableDataMatrix[i][0]+'">');//把button的value值设置为lastControlMatrix[j]
                document.writeln('<i class="ace-icon fa fa-flag bigger-120"></i>');
                document.writeln('</button>');
            }

        }
        document.writeln('</div>');
        document.writeln('</td>');

        document.writeln('</tr>');
    }

    document.writeln('</tbody>');//表格内容-结束
    document.writeln('</table>');

}

function classifyShowAceFyb(classifyName, classifyDivID, classifyIDMatrix, classifyDetailMatrix){
    //显示分类的函数，
    //classifyName:最左侧分类的名称，如第一级，第二级等。
    //classifyIDMatrix:详细分类的矩阵的ID;classifyDetailMatrix:详细分类的名称
    //创建者：付颖斌；创建时间：2021/12/3；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：
    //var classifyIDMatrix=[];
    //var classifyDetailMatrix=[];
    //for(var i=0;i<queryData.length;i++)
    //{
    //classifyIDMatrix[i]=queryData[i]['id'];
    //classifyDetailMatrix[i]=queryData[i]['class_name'];
    //}
    //classifyShowAceFyb('第一级', 'classLevel1', classifyIDMatrix, classifyDetailMatrix);
    document.writeln('<div class="profile-user-info profile-user-info-striped">');
    document.writeln('<div class="profile-info-row">');
    //左侧分类名称
    document.writeln('<div class="profile-info-name">'+ classifyName +'</div>');
    document.writeln('<div class="profile-info-value" id="'+ classifyDivID +'">');
    //详细的类别
    for(var i=0;i<classifyDetailMatrix.length;i++)
    {
        document.writeln('<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>');
        document.writeln('<span class="editable editable-click" value="'+ classifyIDMatrix[i] +'">'+ classifyDetailMatrix[i] +'</span>');
    }
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
}

function uploadFileToServerFyb(textMatrix, inputID, longClass){
    //显示上传文件的页面，
    //textMatrix:提示信息文本矩阵，例：textMatrix=['No file ...','Choose','Change']。inputID:输入框的ID,例:inputID='id-input-file-2'
    //longClass:表示长度字符串,例:longClass='col-xs-12'
    //创建者：付颖斌；创建时间：2022/1/11；修改者：xxx;修改时间：xxxx年xx月xx日
    //例子：uploadFileToServerFyb(['请选择文件','选择','更换'],'upload-fyb-1', 'col-xs-12');
    //测试
    document.writeln('<div class="widget-body">');//
    document.writeln('<div class="widget-main">');
    document.writeln('<div class="form-group">');
    document.writeln('<div class="'+ longClass +'">');
    document.writeln('<input type="file" id="'+ inputID +'" />');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
    $('#'+inputID).ace_file_input({
        no_file:textMatrix[0],
        btn_choose:textMatrix[1],
        btn_change:textMatrix[2],
        droppable:false,
        onchange:null,
        thumbnail:false //| true | large
        //whitelist:'gif|png|jpg|jpeg'
        //blacklist:'exe|php'
        //onchange:''
        //
    });
}